package com.yinhai.msg.email.service.read;

import com.yinhai.msg.email.entity.MsgEmailPo;
import com.yinhai.ta404.core.restservice.requestbean.PageParam;
import com.yinhai.ta404.core.restservice.resultbaen.Page;

import java.util.List;

/**
 * 邮箱配置表(MsgEmail)表服务接口
 *
 * @author makejava
 * @since 2019-03-14 10:25:31
 */
public interface MsgEmailReadService {

    /**
     * 通过emailAddress查询单条数据
     * @param emailAddress
     * @return
     */
     MsgEmailPo getEmailByEmailAddress(String emailAddress);

    /**
     * 通过ID查询单条数据
     *
     * @param id 主键
     * @return 实例对象
     */
    MsgEmailPo queryById(String id);

    /**
     * 通过条件分页查询数据
     * @param msgEmail
     * @return
     */
    Page<MsgEmailPo> queryAll(MsgEmailPo msgEmail, PageParam pageParam);
}
